ResourceListWithProperties Method (PropertyName, Boolean) |
Note: This API is now obsolete.
Namespace: Independentsoft.Webdav
[ObsoleteAttribute("Will be removed in next version. Use method List.")] public string[,] ListWithProperties( PropertyName[] propertyName, bool recursive )
using System; using Independentsoft.Webdav; class List { [STAThread] static void Main(string[] args) { Resource resource = new Resource("http://localhost/dav"); //Creates requested property names. PropertyName propertyName1 = new PropertyName("getcontentlength","DAV:"); PropertyName propertyName2 = new PropertyName("resourcetype","DAV:"); PropertyName propertyName3 = new PropertyName("getlastmodified","DAV:"); PropertyName[] attributes = new PropertyName[3]; attributes[0] = propertyName1; attributes[1] = propertyName2; attributes[2] = propertyName3; //Calls the method. string[,] list = resource.ListWithProperties(attributes); for(int i=0;i list.GetLength(0);i++) { string name = list[i,0]; string size = list[i,1]; string type = list[i,2]; string date = list[i,3]; Console.WriteLine(name + " " + size + " " + type + " " + date); } //Wait for "return" to exit. Console.Read(); } }